home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
lib
/
c
/
etc
/
RCS
/
getgrgid.c,v
< prev
next >
Wrap
Text File
|
1988-06-27
|
699b
|
49 lines
head 1.1;
access ;
symbols ;
locks ; strict;
comment @ * @;
1.1
date 88.06.27.11.41.00; author ouster; state Exp;
branches ;
next ;
desc
@@
1.1
log
@Initial revision
@
text
@/*
* Warning: this file was borrowed from 4.3 BSD and appears to be a
* derivative of AT&T code. Do not distribute it to unlicensed
* parties.
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@@(#)getgrgid.c 5.2 (Berkeley) 3/9/86";
#endif LIBC_SCCS and not lint
#include <grp.h>
struct group *
getgrgid(gid)
register gid;
{
register struct group *p;
struct group *getgrent();
setgrent();
while( (p = getgrent()) && p->gr_gid != gid );
endgrent();
return(p);
}
@